It seems quite hard to implement manual line breaks with
reportlab.platypus.
This is for later.
For now we just
ignore them.
Fortunately there is a workaround that should help in most cases: You can avoid automatic word wrapping by using verses(). The verses() method is similar to memo(), except that it creates XPreformatted paragraph instances instead of the standard Paragraph.
There was a young man in Japan Who wrote verses that never would scan. When asked how this was He said "It's because I always try to put as many words into the last line as I possibly can."
The heading(), pre() and memo() methods have an optional second argument: the name of a Style to be used. For the moment let's just play around with some of them.
This text is aligned right
You can also get formatting by using the HTML syntax. This works at least in one case...
This text is also aligned right
This one is aligned center